package fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype;


import java.io.Serializable;

public final class SmokeDetectionIndices implements Serializable {
    private static final long serialVersionUID = 0;
  
  public fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.Location location;
  
  public fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.Location getLocation() {
  	return location;
  }
  
  public void setLocation(fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.Location v) {
  	location = v;
  }


  public SmokeDetectionIndices() {
 		this.location = null;
 		
  }
  
  public SmokeDetectionIndices(fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.Location location) {
    this.location = location;

  }
    @Override
    public int hashCode() {
      final int prime = 31;
      int result = 1;
      result = prime * result + ((location == null) ? 0 : location.hashCode());

      return result;
    }

    @Override
    public boolean equals(Object obj) {
      if (this == obj)
        return true;
      if (obj == null)
        return false;
      if (getClass() != obj.getClass())
        return false;
      SmokeDetectionIndices other = (SmokeDetectionIndices) obj;
      if (location == null) {
        if (other.location != null)
          return false;
      } else if (!location.equals(other.location))
        return false; 

      return true;
    }
}